/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.java.service;

import com.java.dao.Theloai2DAO;
import com.java.mapbean.Theloai2;
import java.util.List;

/**
 *
 * @author quan.nguyen
 */
public class Theloai2Service extends Theloai2DAO {
    
    public Theloai2 findId(int id) {
        return findById(id);
    }
    
    public List<Theloai2> getAll() {
        return findAll();
    }
    
    public void saveTheLoai2(Theloai2 theloai2) {
        save(theloai2);
    }
    
    public void updateTheloai2(Theloai2 theloai2) {
        update(theloai2);
    }

    public void deleteTheLoai2(Theloai2 theloai2) {
        delete(theloai2);
    }
}
